<template>
  <router-view />
</template>

<script setup lang="ts">
import { useClassifyLovStore } from "@/store/lov";
import { onMounted } from "vue";

const lovStore = useClassifyLovStore();

// 组件挂载时加载缓存数据
onMounted(() => {
  lovStore.loadFromStorage(); // 从 localStorage 恢复数据
  lovStore.fetchClassifyLov(); // 获取最新数据（如果缓存过期）
});
</script>

<style></style>
